home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / SCAPI 0.85 / Spunk Cross API 1.0 / MacSCAPI / Headers / SCAPIStatic.h < prev    next >
Encoding:
Text File  |  1997-05-30  |  2.0 KB  |  75 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    SCAPIStatic.h                  ©1997 Spunk Cross         All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef SCAPISTATIC_H
  6. #define SCAPISTATIC_H
  7.  
  8. #include "SCAPICommonIncludes.h"
  9. #include "SCAPIWindow.h"
  10.  
  11.  
  12. // ---------------------------------------------------------------------------
  13. //        • Defines
  14. // ---------------------------------------------------------------------------
  15.  
  16. #define SCAPIStatic_default_originx            0
  17. #define SCAPIStatic_default_originy            0
  18. #define SCAPIStatic_default_width            50
  19. #define SCAPIStatic_default_height            25
  20.  
  21.  
  22. // ---------------------------------------------------------------------------
  23. //        • SCAPIStatic Class
  24. // ---------------------------------------------------------------------------
  25.  
  26. class SCAPIStatic :  public LCaption
  27. {
  28.  
  29.     // ===========================================================
  30.     // === Spunk Cross API, these are the routines you can use ===
  31.     // ===========================================================
  32.     
  33.         // • Constructor - Destructor
  34.         // --------------------------
  35.         
  36.     public:
  37.     
  38.         SCAPIStatic(    char*            inText,
  39.                         SCAPIWindow*    inWindowP,
  40.                         int                inOriginx = SCAPIStatic_default_originx,
  41.                         int             inOriginy = SCAPIStatic_default_originy,
  42.                         int                inWidth = SCAPIStatic_default_width,
  43.                         int                inHeight = SCAPIStatic_default_height        );
  44.         
  45.         ~SCAPIStatic();
  46.         
  47.         
  48.     // =================================
  49.     // === Internal part, do not use ===
  50.     // =================================
  51.         
  52.         // • Member functions
  53.         // ------------------
  54.         
  55.     private:
  56.     
  57.         SPaneInfo        MakeSPaneInfo(    SCAPIWindow*    inWindowP,
  58.                                         int                inOriginx,
  59.                                         int                inOriginy,
  60.                                         int                inWidth,
  61.                                         int                inHeight    );
  62.                                         
  63.         unsigned char*        MakePascalString(    char*    inTitle );
  64.                                         
  65.         
  66.         // • Member variables
  67.         // ------------------
  68.         
  69.     private:
  70.     
  71.         SPaneInfo            mSPaneInfo;
  72.         unsigned char        mStr255[256];
  73. };
  74.  
  75. #endif